package com.foreverwin.jzymes.eap.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.util.Date;
import java.util.Date;
import java.util.Date;

/**
 * 设备运行记录表 Z_RESOURCE_TIME_LOG
 * 
 * @author ervin
 * @date 2019-06-22
 */
public class ResourceTimeLog
{
	private static final long serialVersionUID = 1L;
	
	/** 主键 */
	private String handle;
	/** 站点 */
	private String site;
	/** 设备编号 */
	private String resrce;
	/** 设备状态 */
	private String status;
	/** 设备信息 */
	private String message;
	/** 状态开始时间 */
	private Date startDateTime;
	/** 状态结束时间 */
	private Date endDateTime;
	/** 状态结束时间 */
	private Long elapsedTime;
	/** 上次汇总时间 */
	private Date lastSumTime;
	/** 是否完成 */
	private String isDone;

	public void setHandle(String handle) 
	{
		this.handle = handle;
	}

	public String getHandle() 
	{
		return handle;
	}
	public void setSite(String site) 
	{
		this.site = site;
	}

	public String getSite() 
	{
		return site;
	}
	public void setResrce(String resrce) 
	{
		this.resrce = resrce;
	}

	public String getResrce() 
	{
		return resrce;
	}
	public void setStatus(String status) 
	{
		this.status = status;
	}

	public String getStatus() 
	{
		return status;
	}
	public void setMessage(String message) 
	{
		this.message = message;
	}

	public String getMessage() 
	{
		return message;
	}
	public void setStartDateTime(Date startDateTime) 
	{
		this.startDateTime = startDateTime;
	}

	public Date getStartDateTime() 
	{
		return startDateTime;
	}
	public void setEndDateTime(Date endDateTime) 
	{
		this.endDateTime = endDateTime;
	}

	public Date getEndDateTime() 
	{
		return endDateTime;
	}
	public void setElapsedTime(Long elapsedTime) 
	{
		this.elapsedTime = elapsedTime;
	}

	public Long getElapsedTime() 
	{
		return elapsedTime;
	}
	public void setLastSumTime(Date lastSumTime) 
	{
		this.lastSumTime = lastSumTime;
	}

	public Date getLastSumTime() 
	{
		return lastSumTime;
	}
	public void setIsDone(String isDone) 
	{
		this.isDone = isDone;
	}

	public String getIsDone() 
	{
		return isDone;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("handle", getHandle())
            .append("site", getSite())
            .append("resrce", getResrce())
            .append("status", getStatus())
            .append("message", getMessage())
            .append("startDateTime", getStartDateTime())
            .append("endDateTime", getEndDateTime())
            .append("elapsedTime", getElapsedTime())
            .append("lastSumTime", getLastSumTime())
            .append("isDone", getIsDone())
            .toString();
    }
}
